/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fh.view.masterclass;

import fh.view.running.CurrentTourneyOverview;
import fh.component.DateParser;
import fh.controller.LocationController;
import fh.controller.PlayerController;
import fh.model.Event;
import fh.model.Location;
import fh.model.Player;
import fh.view.*;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;

/**
 *
 * @author Bart
 */
public class DetailMasterclass extends javax.swing.JFrame {

    Event aMasterclass;
    LocationController lc;
    PlayerController pc;

    /**
     * Creates new form DetailMasterclass
     */
    public DetailMasterclass() {
        initComponents();
    }

    public DetailMasterclass(Event masterclass) {
        initComponents();
        aMasterclass = masterclass;
        lc = new LocationController();
        pc = new PlayerController();
        getMasterclassData();
        FillList();
    }

    private void getMasterclassData() {
        Location currentLocation = lc.getLocationById(aMasterclass.getLocation_id());
        LocationMasterclassField.setText(currentLocation.getName());
        Player currentvip = pc.getPlayerById(aMasterclass.getPlayer_id());
        VIPMasterclassField.setText(currentvip.getFirstname());
        NameMasterclassField.setText(aMasterclass.getName());
        Min_ratingMasterclassField.setText("" + aMasterclass.getMin_rating());
        Max_ratingMasterclassField.setText("" + aMasterclass.getMax_rating());
        DateMasterclassField.setText(DateParser.mySqlDateToString(aMasterclass.getDate()));
        Max_playerMasterclassfield.setText("" + aMasterclass.getMax_players());
        EntryFeeMasterclass.setText("" + aMasterclass.getEntry_fee());

    }

    private void FillList() {
        DefaultComboBoxModel players = pc.getEventPlayerList(aMasterclass.getId());
        PlayerList.clearSelection();
        PlayerList.setModel(players);
    }

    private Player getPlayer() {

        Player player = (Player) PlayerList.getSelectedValue();
        return player;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        LocationEventMainButton = new javax.swing.JButton();
        CurrentTourneyButton = new javax.swing.JButton();
        PlayerOverviewButton = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        NameMasterclassField = new javax.swing.JTextField();
        DateMasterclassField = new javax.swing.JTextField();
        Max_playerMasterclassfield = new javax.swing.JTextField();
        Min_ratingMasterclassField = new javax.swing.JTextField();
        Max_ratingMasterclassField = new javax.swing.JTextField();
        VIPMasterclassField = new javax.swing.JTextField();
        LocationMasterclassField = new javax.swing.JTextField();
        EditMasterclassButton = new javax.swing.JButton();
        EntryFeeMasterclass = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        BacktoOverviewButton = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        PlayerList = new javax.swing.JList();
        jLabel10 = new javax.swing.JLabel();
        EditPaymentStatusButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Detail masterclass");
        setMaximumSize(new java.awt.Dimension(800, 600));
        setMinimumSize(new java.awt.Dimension(800, 600));
        setPreferredSize(new java.awt.Dimension(800, 600));
        setResizable(false);

        LocationEventMainButton.setText("Locatie & Event");
        LocationEventMainButton.setMaximumSize(new java.awt.Dimension(111, 23));
        LocationEventMainButton.setMinimumSize(new java.awt.Dimension(111, 23));
        LocationEventMainButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LocationEventMainButtonActionPerformed(evt);
            }
        });

        CurrentTourneyButton.setText("Toernooi runnen");
        CurrentTourneyButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CurrentTourneyButtonActionPerformed(evt);
            }
        });

        PlayerOverviewButton.setText("Speler beheer");
        PlayerOverviewButton.setMaximumSize(new java.awt.Dimension(111, 23));
        PlayerOverviewButton.setMinimumSize(new java.awt.Dimension(111, 23));
        PlayerOverviewButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PlayerOverviewButtonActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 30)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Full House");
        jLabel1.setToolTipText("");

        jLabel3.setText("Datum:");

        jLabel2.setText("Naam:");

        jLabel9.setText("Locatie:");

        jLabel8.setText("Bekende speler:");

        jLabel5.setText("Maximaal aantal deelnemers:");

        jLabel7.setText("Maximale rating:");

        jLabel6.setText("Minimale rating:");

        NameMasterclassField.setEditable(false);
        NameMasterclassField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NameMasterclassFieldActionPerformed(evt);
            }
        });

        DateMasterclassField.setEditable(false);
        DateMasterclassField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DateMasterclassFieldActionPerformed(evt);
            }
        });

        Max_playerMasterclassfield.setEditable(false);
        Max_playerMasterclassfield.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Max_playerMasterclassfieldActionPerformed(evt);
            }
        });

        Min_ratingMasterclassField.setEditable(false);
        Min_ratingMasterclassField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Min_ratingMasterclassFieldActionPerformed(evt);
            }
        });

        Max_ratingMasterclassField.setEditable(false);
        Max_ratingMasterclassField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Max_ratingMasterclassFieldActionPerformed(evt);
            }
        });

        VIPMasterclassField.setEditable(false);
        VIPMasterclassField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                VIPMasterclassFieldActionPerformed(evt);
            }
        });

        LocationMasterclassField.setEditable(false);
        LocationMasterclassField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LocationMasterclassFieldActionPerformed(evt);
            }
        });

        EditMasterclassButton.setText("Wijzigen");
        EditMasterclassButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EditMasterclassButtonActionPerformed(evt);
            }
        });

        EntryFeeMasterclass.setEditable(false);
        EntryFeeMasterclass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EntryFeeMasterclassActionPerformed(evt);
            }
        });

        jLabel4.setText("Kosten:");

        BacktoOverviewButton.setText("Terug naar overzicht");
        BacktoOverviewButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BacktoOverviewButtonActionPerformed(evt);
            }
        });

        PlayerList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(PlayerList);

        jLabel10.setText("Ingeschreven spelers:");

        EditPaymentStatusButton.setText("Betaalstatus wijzigen");
        EditPaymentStatusButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EditPaymentStatusButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(EditMasterclassButton, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(BacktoOverviewButton))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(LocationEventMainButton, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(PlayerOverviewButton, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(CurrentTourneyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel6)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabel2)
                                    .addComponent(jLabel8)
                                    .addComponent(jLabel4))
                                .addGap(36, 36, 36)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(EntryFeeMasterclass)
                                    .addComponent(Max_ratingMasterclassField)
                                    .addComponent(Min_ratingMasterclassField)
                                    .addComponent(Max_playerMasterclassfield)
                                    .addComponent(DateMasterclassField)
                                    .addComponent(NameMasterclassField, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                                    .addComponent(LocationMasterclassField, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(VIPMasterclassField, javax.swing.GroupLayout.Alignment.TRAILING))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel10)
                                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(EditPaymentStatusButton, javax.swing.GroupLayout.Alignment.TRAILING))))))
                .addGap(50, 50, 50))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(PlayerOverviewButton, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(CurrentTourneyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LocationEventMainButton, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addComponent(jLabel10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(NameMasterclassField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(DateMasterclassField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(Max_playerMasterclassfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(Min_ratingMasterclassField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(Max_ratingMasterclassField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(EntryFeeMasterclass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(VIPMasterclassField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(LocationMasterclassField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(EditPaymentStatusButton)))
                .addGap(12, 12, 12)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(BacktoOverviewButton)
                    .addComponent(EditMasterclassButton))
                .addContainerGap(104, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void LocationEventMainButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LocationEventMainButtonActionPerformed
        new LocationEventOverview().setVisible(true);
        this.dispose();
   }//GEN-LAST:event_LocationEventMainButtonActionPerformed

    private void CurrentTourneyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CurrentTourneyButtonActionPerformed
        new CurrentTourneyOverview().setVisible(true);
        this.dispose();
   }//GEN-LAST:event_CurrentTourneyButtonActionPerformed

    private void PlayerOverviewButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PlayerOverviewButtonActionPerformed
        new PlayerOverview().setVisible(true);
        this.dispose();
   }//GEN-LAST:event_PlayerOverviewButtonActionPerformed

    private void EditMasterclassButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EditMasterclassButtonActionPerformed
        new EditMasterclass(aMasterclass).setVisible(true);
        this.dispose();
    }//GEN-LAST:event_EditMasterclassButtonActionPerformed

    private void BacktoOverviewButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BacktoOverviewButtonActionPerformed
        new MasterclassOverview().setVisible(true);
        this.dispose();
    }//GEN-LAST:event_BacktoOverviewButtonActionPerformed

    private void EditPaymentStatusButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EditPaymentStatusButtonActionPerformed
        if (PlayerList.getSelectedValue() == null) {

            JOptionPane.showMessageDialog(null, "Geen speler geselecteerd");
        } else {
            Player aPlayer = getPlayer();
            new EditPaymentStatus(aPlayer, aMasterclass).setVisible(true);
            this.dispose();
        }
    }//GEN-LAST:event_EditPaymentStatusButtonActionPerformed

    private void NameMasterclassFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NameMasterclassFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NameMasterclassFieldActionPerformed

    private void DateMasterclassFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DateMasterclassFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_DateMasterclassFieldActionPerformed

    private void Max_playerMasterclassfieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Max_playerMasterclassfieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Max_playerMasterclassfieldActionPerformed

    private void Min_ratingMasterclassFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Min_ratingMasterclassFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Min_ratingMasterclassFieldActionPerformed

    private void Max_ratingMasterclassFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Max_ratingMasterclassFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Max_ratingMasterclassFieldActionPerformed

    private void EntryFeeMasterclassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EntryFeeMasterclassActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_EntryFeeMasterclassActionPerformed

    private void VIPMasterclassFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VIPMasterclassFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_VIPMasterclassFieldActionPerformed

    private void LocationMasterclassFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LocationMasterclassFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_LocationMasterclassFieldActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(DetailMasterclass.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(DetailMasterclass.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(DetailMasterclass.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(DetailMasterclass.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new DetailMasterclass().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BacktoOverviewButton;
    private javax.swing.JButton CurrentTourneyButton;
    private javax.swing.JTextField DateMasterclassField;
    private javax.swing.JButton EditMasterclassButton;
    private javax.swing.JButton EditPaymentStatusButton;
    private javax.swing.JTextField EntryFeeMasterclass;
    private javax.swing.JButton LocationEventMainButton;
    private javax.swing.JTextField LocationMasterclassField;
    private javax.swing.JTextField Max_playerMasterclassfield;
    private javax.swing.JTextField Max_ratingMasterclassField;
    private javax.swing.JTextField Min_ratingMasterclassField;
    private javax.swing.JTextField NameMasterclassField;
    private javax.swing.JList PlayerList;
    private javax.swing.JButton PlayerOverviewButton;
    private javax.swing.JTextField VIPMasterclassField;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration//GEN-END:variables
}
